import request from '@/utils/request'

// 查询用户题库进度列表
export function listUserBankProgress(query) {
  return request({
    url: '/exam/userBankProgress/list',
    method: 'get',
    params: query
  })
}

// 查询用户题库进度所有列表
export function listAllUserBankProgress(query) {
  return request({
    url: '/exam/userBankProgress/listAll',
    method: 'get',
    params: query
  })
}

// 查询用户题库进度详细
export function getUserBankProgress(progressId) {
  return request({
    url: '/exam/userBankProgress/getInfo/' + progressId,
    method: 'get'
  })
}

// 新增用户题库进度
export function addUserBankProgress(data) {
  return request({
    url: '/exam/userBankProgress/add',
    method: 'post',
    data: data
  })
}

// 修改用户题库进度
export function updateUserBankProgress(data) {
  return request({
    url: '/exam/userBankProgress/edit',
    method: 'post',
    data: data
  })
}

// 删除用户题库进度
export function delUserBankProgress(progressId) {
  return request({
    url: '/exam/userBankProgress/remove/' + progressId,
    method: 'get'
  })
}
